import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import './index.scss';

class Breadcrumbs extends React.Component {
  constructor(props) {
    super(props);
    this.state = {

    }
  }
  render() {
    return (
      <div id="breadcrumbs">
        <span className="current-title">
          {this.props.currentTitle}
        </span>
        <span className="position">
          <span>您现在的位置是:</span>
          <Link to="/">网站首页</Link>
          &gt;&gt;{this.props.currentTitle}
        </span>

      </div>
    )
  }
}
export default Breadcrumbs;
Breadcrumbs.propTypes = {
  currentTitle: PropTypes.string,
}
